package org.sdp.pearproject.controller;


import org.sdp.pearproject.dto.request.*;
import org.sdp.pearproject.dto.response.*;
import org.sdp.pearproject.service.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.util.Date;
import java.util.List;

/**
 * @ClassName: IndexSuperController
 * @Description:
 * @Author: SDP
 * @Date: 2022-07-25
 * @Version: 1.0
 * Table: index
 * Comment:
 * 
 */
public class IndexSuperController extends BaseController {
    @Autowired
    IndexService service;

    public Integer addIndex(IndexAddRequest request) throws Exception {
        return service.addIndex(request);
    }

    public Integer updateIndex(IndexUpdateRequest request) throws Exception {
        return service.updateIndex(request);
    }

    public Integer deleteIndex(IndexDeleteRequest request) throws Exception {
        return service.deleteIndex(request);
    }

    public IndexQueryResponse queryIndex(IndexQueryRequest request) throws Exception {
        return service.queryIndex(request);
    }

    public List<IndexQueryResponse> listIndex(IndexQueryRequest request) throws Exception {
        return service.listIndex(request);
    }

    public Integer countIndex(IndexQueryRequest request) throws Exception {
        return service.countIndex(request);
    }

    public BaseStatResponse statIndex(IndexQueryRequest request) throws Exception {
        return service.statIndex(request);
    }


    public List<Object> indexCheckInstall(BaseRequest request) throws Exception {
        return service.indexCheckInstall(request);
    }

}
